package com.rmi;

import javax.annotation.Resource;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import com.api.IOrderService;
import com.api.req.OrderReq;

@RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest(classes = ProducterApplication.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
public class AppTester {
	@Resource
	private IOrderService iorderService;

	@Test
	public void getUser() {
		System.out.println(iorderService.save(new OrderReq(87L, "就大家都")));
	}

}
